//
//  Util.m
//  Chat
//
//  Created by mac on 16/7/6.
//  Copyright © 2016年 Earl. All rights reserved.
//

#import "Util.h"

@implementation Util

+(void)showAlertWithMessage:(NSString *)message confirmBlock:(Block)block{
    
    UIAlertController *AlertCA=[[UIAlertController alloc]init];
    UIAlertAction *action=[UIAlertAction actionWithTitle:message style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        block();
    }];
    
    [AlertCA addAction:action];
    [WINDOW.rootViewController presentViewController:AlertCA animated:YES completion:nil];
    
    
}


@end
